﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace _300Report.control
{
    public partial class LongListItemContainer : UserControl
    {

        public LongListItemContainer()
            {
                InitializeComponent();
                this.MouseLeftButtonDown += OnPointerDown;
                this.MouseLeftButtonUp += OnPointerUp;
                this.MouseLeave += OnPointerUp;

           
            }

      

            private void OnPointerDown(object sender, System.Windows.Input.MouseEventArgs e)
            {
                if ((sender as UIElement) != null)
                    (sender as UIElement).Projection = new PlaneProjection() { LocalOffsetZ = -30 };
            }

            private void OnPointerUp(object sender, System.Windows.Input.MouseEventArgs e)
            {
                if ((sender as UIElement) != null)
                    (sender as UIElement).Projection = null;
            }
        }
}
